/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-15 10:51:51
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-18 09:24:41
 */
export default class Result extends Error {
  code: number;
  message: string;
  data: any;
  constructor(code: number, message: string, data?: any) {
    super(message);
    this.code = code;
    this.message = message;
    this.data = data;
  }
}